﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AcademicCoordinatorConfiguration : EntityConfiguration<AcademicCoordinator>
    {

        public AcademicCoordinatorConfiguration()
        {
            Property(s => s.PersonID).IsIdentity();
            MapHierarchy(
            e => new
            {
                e.PersonID,
                e.Description,
            }
        ).ToTable("AcademicCoordinator");
        }
    }
}
